/**
 * author:Administrator
 * date:2016/2/24
 * desc:TODO
 */

'use strict';

var RepoImpl = require('../../../infrastructure/persist').ShopWareRepoImpl;
class ShopWareRepo {

  /**
   * @param shopWare
   * @param t transaction
   */
  static * store(shopWare, t) {
    yield RepoImpl.store(shopWare, t);
  }

  static * findByShopIdWareId(shopId, wareId) {
    return yield RepoImpl.findByShopIdWareId(shopId, wareId);
  }

}

module.exports = ShopWareRepo;
